package cn.hanyx.coder.design.pattern.behavioral.visitor.demo04;

/**
 * Compressor
 * 压缩文件
 *
 * @author hanyx
 * @date 2020/07/29
 */
public class Compressor {
    public void compressor2txt(PPTFile pptFile) {
        System.out.println("Compressor PPT.");
    }

    public void compressor2txt(PdfFile pdfFile) {
        System.out.println("Compressor PDF.");
    }

    public void compressor2txt(WordFile wordFile) {
        System.out.println("Compressor world.");
    }
}
